package com.kerrykidz.common.finger;


/**
 * 包装一层
 * 
 * @author LQH
 * 
 */
public class FerlyMatch {
	
	private byte[] lock = new byte[0];

	private FerlyMatch() {
		super();
	}

	private static FerlyMatch fm = null;

	public static FerlyMatch getInstatnce() {
		if (null == fm) {
			fm = new FerlyMatch();
		}
		return fm;
	}

	public int fingerMatch(String pRegBuf, String pVerBuf, int nLevel) {
		FerlyAlgJniCall ferlyMatch = FerlyAlgJniCall.getInstatnce();
		int result ;
		synchronized (lock) {
			result= ferlyMatch.FlAlgMatch(pRegBuf, pVerBuf, nLevel);
		}
		return  result;
	}

}